<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/doSave" method="post">
        学生：<select name="studentId">
            <option th:each="stu : ${students}" th:value="${stu.id}" th:text="${stu.name}"></option>
        </select><br>
        课程: <input type="text" name="course" ><br>
        分数: <input type="text" name="score"><br>
        <input type="submit" value="添加"><br>
    </form>
</body>
</html>
